package com.duck.inspection;

import com.duck.api.config.DefaultFeignConfig;
import org.mybatis.spring.annotation.MapperScan;
import org.springframework.boot.SpringApplication;
import org.springframework.boot.autoconfigure.SpringBootApplication;
import org.springframework.cloud.openfeign.EnableFeignClients;
import org.springframework.context.annotation.ComponentScan;

@EnableFeignClients(basePackages = "com.duck.api.client",defaultConfiguration = DefaultFeignConfig.class)
@MapperScan("com.duck.inspection.dao")
@ComponentScan(basePackages = {
        "com.duck.inspection",        // 默认扫描包
        "com.duck.common.utils" // 新增跨模块扫描包
})
@SpringBootApplication
public class inspectionApplication {
    public static void main(String[] args) {

        SpringApplication.run(inspectionApplication.class, args);
    }
}